package com.itheima.service.impl;

import com.itheima.domain.Office;
import com.itheima.mapper.OfficeMapper;
import com.itheima.service.OfficeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("officeService")
public class OfficeServiceImpl implements OfficeService {

    @Autowired
    private OfficeMapper officeMapper;

    @Override
    public List<Office> findAll() {

        List<Office> all = officeMapper.findAll();
        return all;

    }
}
